#include "Test_set.h"

vector<Rectangle> readConfigFile(const string& filename){
	vector<Rectangle> Rectangles;

	ifstream inputFile(filename);

	if(!inputFile.is_open()) {
		cout << "can not open the file"  << filename << endl;
		return Rectangles;
	}

	string line;
	while(getline(inputFile, line)){
		istringstream iss(line);

		int temp[4];
		int i = 0;
		while(iss >> temp[i]){
			i++;
		}                                         
		//存储扩大边界后的矩形
		Rectangles.push_back(Rectangle(temp[0]-2,temp[1]-2,temp[2]+2,temp[3]+2));
		
	}
	inputFile.close();
	return Rectangles;
}
